package com.ad.payload.dto.item;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author:dxgong
 * @日期 2021/4/17 21:19
 * @注释
 */
@Data
public class ItemCategoryEditDto {

    @NotNull(message="id不能为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @NotNull(message = "商家id不能为空!")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long merchantId;

    /**
     * 品类名称
     * */
    @NotNull(message = "品类名称不能为空")
    private String name;

    /**
     * 品类描述
     * */
    private String description;


    /**
     * 上下架状态(1/0)
     * */
    private Integer status;
}
